package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.vo.PageResult;

import java.util.List;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: CategoryService
 *
 * @AUTHOR: zhang
 * DATE: 2023/11/22
 * DESCRIPTION :
 */
public interface CategoryService {
    PageResult getPage(CategoryPageQueryDTO dto);

    void insert(CategoryDTO dto);

    void update(Integer status,CategoryDTO dto);

    void delete(Long id);

    List<Category> selectCategoryByType(Integer type);
}
